from django.db import models

# Create your models here.
class JosMessages(models.Model):
    message_id = models.IntegerField(primary_key=True)
    user_id_from = models.IntegerField()
    user_id_to = models.IntegerField()
    folder_id = models.IntegerField()
    date_time = models.DateTimeField()
    state = models.IntegerField()
    priority = models.IntegerField()
    subject = models.TextField()
    message = models.TextField()
    class Meta:
        db_table = u'jos_messages'

class JosMessagesCfg(models.Model):
    user_id = models.IntegerField(unique=True)
    cfg_name = models.CharField(unique=True, max_length=100)
    cfg_value = models.CharField(max_length=255)
    class Meta:
        db_table = u'jos_messages_cfg'
